Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flow): rename src/index.js to src/gymnast.js #374

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

arahansen
Copy link
Collaborator

Since webpack outputs a file called gymnast.js, the src file needs to be named the same so that when we output flow files, we get gymnast.js (webpack output) next to gymnast.js.flow (flow types generated from src).

Alternatively, we could update webpack to output a file named index.js.

@arahansen arahansen changed the title fix(flow): rename src/index.js to gymnast.js fix(flow): rename src/index.js to src/gymnast.js Feb 23, 2018
Since webpack outputs a file called `gymnast.js`, the src file needs to be named the same so that when we output flow files, we get `gymnast.js` (webpack output) next to `gymnast.js.flow` (flow types generated from src).

Alternatively, we could update webpack to output a file named `index.js.
@@ -14,7 +14,7 @@
[libs]

[options]
module.name_mapper='gymnast' -> '<PROJECT_ROOT>/src'
module.name_mapper='gymnast' -> '<PROJECT_ROOT>/dist/gymnast'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should hopefully give us a better confidence that flow types are working correctly

Copy link
Collaborator

@obartra obartra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 Awesome

This should also unblock @colinlgray

@arahansen arahansen merged commit 3eb2eee into master Feb 23, 2018
@arahansen arahansen deleted the arahansen/fix-flow branch February 23, 2018 15:59
@obartra
Copy link
Collaborator

obartra commented Sep 6, 2018

🎉 This PR is included in version 16.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants